import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-peijian-list',
  templateUrl: './peijian-list.component.html',
  styleUrls: ['./peijian-list.component.scss']
})
export class PeijianListComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {
    window.scrollTo(0, 0);

    // 选择城市
    $("#citypick").click(function () {
      citypicker();
    });

    // 头部高度计算
    $(function () {
      var height = $('#top').height();
      $('.mall_list_k').css('padding-top', height);
    })

    // 筛选等
    $(function () {
      $('.mall_list_top .c2>p').mousedown(function () {
        $('.mall_list_top .c2 .jiage').hide();
        $(this).next().show();
      })
      $('.mall_list_top .c2 .no').mousedown(function () {
        $('.mall_list_top .c2 .jiage').hide();
      })
      var Aa = $('.mall_list_top .c2 .jiage .top a');
      Aa.mousedown(function () {
        $(Aa).siblings().removeClass('xuanz');
        $(this).addClass('xuanz');
      })
    })


  }

}
